<?php
/**
 * Author: Administrator
 * Date: 2022/7/28 1:09
 */

namespace DesignPatterns\Behavioral\Observer;

class UserRename implements \SplObserver
{
    const EVENT = 'name';

    public function update(\SplSubject $subject): void
    {
        echo 'Please update your ID card, '.$subject->getName().PHP_EOL;
    }

}